package top.yokey.shopnc.model;

import top.yokey.base.base.BaseHttpClient;
import top.yokey.base.base.BaseHttpListener;

@SuppressWarnings("ALL")
public class VoucherModel {

    private final String ACT = "voucher";
    private static volatile VoucherModel instance;

    public static VoucherModel get() {
        if (instance == null) {
            synchronized (VoucherModel.class) {
                if (instance == null) {
                    instance = new VoucherModel();
                }
            }
        }
        return instance;
    }

    public void voucherTplList(String storeId, BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "voucher_tpl_list")
                .add("store_id", storeId)
                .add("gettype", "free")
                .post(baseHttpListener);

    }

}
